﻿using System.Collections.Generic;
using System.Net.Sockets;
using Nutilities.Net.Server;

namespace Server
{
    class ServerListener : ConnectionListener
    {
        private List<Client> _clients = new List<Client>();

        public ServerListener(int port) : base(port) {}

        protected override void OnSocketAccepted(Socket socket)
        {
            _clients.Add(new Client(socket));
        }
    }
}
